@mixin rounded {
    border-radius: 15px;
}
.modal-create {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    font-size: 1em;
    background: rgba(0, 0, 0, 0.6);
    &__end-time {
        width: 30em;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        .modal-create__name-input {
            width: 10em;
        }
    }
    &__main {
        padding: 1.5em 0;
        position: fixed;
        background: #786fa6;
        width: 80em;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        user-select: none;
        min-width: 400px;
        max-width: 80%;
        border: none;
        overflow-wrap: anywhere;
        @include rounded;
    }
    &__header {
        text-align: center;
        display: block;
        position: relative;
        width: 100%;
        margin-bottom: 1em;
        button {
            position: absolute;
            right: 1em;
            top: 0;
        }
        h1 {
            word-wrap: break-word;
        }
    }
    button {
        @include rounded;
        height: 2.5em;
        width: 5em;
        cursor: pointer;
        border: none;
        outline: none;
    }
    &__confirm-btn {
        margin-top: 1em;
    }
    &__name-input {
        @include rounded;
        padding-left: 1em;
        height: 2em;
        line-height: 2em;
        vertical-align: middle;
        width: 30em;
        font-size: 1.2em;
        background: white;
        min-width: 200px;
        max-width: 80%;
        outline: none;
        border: none;
    }
    &__description-input {
        @extend .modal-create__name-input;
        margin: 1em 0 0;
        resize: none;
        height: 6em;
        line-height: 1.2em;
        padding: 0.5em 1em 0;
    }
    &__description-length {
        position: relative;
        width: 35em;
        text-align: right;
    }
}
